package com.woniu.feign;

import com.woniu.dto.UserDto;
import com.woniu.utils.ResData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-server")
public interface UserFeign {

    @RequestMapping("/findByUsername")
    UserDto findByUsername(@RequestParam("username") String username);


    /**
     * 查询全部才端
     */
    @RequestMapping("/queryMenu")
    ResData queryMenu();
}
